/**
 * 
 */
package com.wolfpire.system.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户组课程
 * @author lihd
 *
 */

@Entity
@Table(name = "t_usergroup_subject")
public class UserGroupSubjectRelation implements Serializable {
	
	private static final long serialVersionUID = 2667854646451179668L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false, length = 32)
	private Long id;
	
	@Column(name = "usergroup_id", length = 32)
	private Long usergroupId;
	
	@Column(name = "subject_id", length = 32)
	private Long subjectId;

	public UserGroupSubjectRelation() {
		super();
	}
	
	

	public UserGroupSubjectRelation(Long usergroupId, Long subjectId) {
		super();
		this.usergroupId = usergroupId;
		this.subjectId = subjectId;
	}



	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUsergroupId() {
		return usergroupId;
	}

	public void setUsergroupId(Long usergroupId) {
		this.usergroupId = usergroupId;
	}

	public Long getSubjectId() {
		return subjectId;
	}

	public void setSubjectId(Long subjectId) {
		this.subjectId = subjectId;
	}
	
}
